package com.emcom.gotour.mvc.model;

import javax.servlet.http.HttpServletRequest;

import com.emcom.gotour.po.TourScheduler;

public class TourSchedulerModel {
	public static String PAGING_NAME = "SCHEDULER";
	public static TourScheduler getObject(HttpServletRequest request) {
		String tourId = request.getParameter("tourId");
		String name = request.getParameter("name");
		String content = request.getParameter("content");
		String dinner = request.getParameter("dinner");
		String hotel = request.getParameter("hotel");
		String comments = request.getParameter("comments");
		TourScheduler tourScheduler = new TourScheduler();
		tourScheduler.setTourId(Long.valueOf(tourId));
		tourScheduler.setName(name);
		tourScheduler.setContent(content);
		tourScheduler.setDinner(dinner);
		tourScheduler.setHotel(hotel);
		tourScheduler.setComments(comments);
		return tourScheduler;
	}
}
